<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/18
 * Time: 13:17
 */

namespace app\admin\model;


use think\Model;

class MemberUser extends Model
{

    protected $table = "b_member_user";
    protected $autoWriteTimestamp = true;

    public function getBirthdayAttr($value){
        return date('Y年m月d日',$value);
    }

    public function getSexAttr($value){
        $sex=[0=>'未知',1=>'男',2=>'女'];
        return $sex[$value];
    }

    public function getGradeAttr($value){
        $grade = [0=>"普通会员"];
        return $grade[$value];
    }
}